package com.shuang.controller;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.shuang.service.AddressSAXService;

@Controller
@RequestMapping("/sax")
public class SAXHanlder {
	@Resource(name="addressSAXService")
	private AddressSAXService addressSAXService;
	@RequestMapping("/getProvice")
	@ResponseBody
	public Map<String,Object> selAddress(String code){
		return addressSAXService.getAddress(code);
	}
	
}
